package cn.tedu.controller;

import cn.tedu.mvc.core.Handler;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.HashMap;
import java.util.Map;


public class UserController implements Handler {

    @Override
    public ModelAndView handlerReqeust(HttpServletRequest request, HttpServletResponse response) throws Exception {
        System.out.println("我是userController");
        ModelAndView modelAndView = new ModelAndView();
        Map<String,String> map = new HashMap<>();
        map.put("1","userController");
        modelAndView.addAllObjects(map);
        return modelAndView;
    }

}


